-- GENERATED SPELL FOR [Sethekk Oracle] --


function spell0_18328(pUnit, Event) --@Arcane Lightning,n/a--
pUnit:FullCastSpellOnTarget(32690,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18328', 5500, 1)
end

function spell1_18328(pUnit, Event) --@Arcane Lightning,n/a--
pUnit:FullCastSpellOnTarget(38146,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18328', 5500, 1)
end

function spell2_18328(pUnit, Event) --@Faerie Fire,n/a--
pUnit:FullCastSpellOnTarget(32129,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18328', 32000, 1)
end

function Sorts_18328(pUnit, Event)
local choix_sorts_18328 = math.random(0, 2)
if choix_sorts_18328 == 0 then
pUnit:RegisterEvent('spell0_18328', 1, 1)
end
if choix_sorts_18328 == 1 then
pUnit:RegisterEvent('spell1_18328', 1, 1)
end
if choix_sorts_18328 == 2 then
pUnit:RegisterEvent('spell2_18328', 1, 1)
end
end

function mob18328_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18328', math.random(1500, 3000), 1)
end

function mob18328_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18328_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18328_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18328, 1, 'mob18328_Action')
RegisterUnitEvent(18328, 2, 'mob18328_Leave')
RegisterUnitEvent(18328, 3, 'mob18328_Kill')
RegisterUnitEvent(18328, 4, 'mob18328_Die')
